package com.example.userinterface.controller;
import com.example.commonsinterface.po.City;
import com.example.userinterface.service.UserRequset;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping
public class UserController {

    @Autowired
    private UserRequset userRequset;

    @RequestMapping("/searchCity")
    @ResponseBody
    public List<City> searchCity() {
        return userRequset.list();
    }
}
